package com.ruoyi.contract.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 回款对象 payment_collection
 *
 * @author ruoyi
 * @date 2024-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PaymentCollection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 汇款id */
    private Long paymentId;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 汇款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "汇款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentDate;

    /** 汇款金额 */
    @Excel(name = "汇款金额")
    private Long paymentPrice;

    /** 到账日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到账日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date getDate;

    /** 收款人 */
    @Excel(name = "收款人")
    private String payee;

    /** 收款条件 */
    @Excel(name = "收款条件")
    private String paymentTerms;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("paymentId", getPaymentId())
                .append("projectId", getProjectId())
                .append("paymentDate", getPaymentDate())
                .append("paymentPrice", getPaymentPrice())
                .append("getDate", getGetDate())
                .append("payee", getPayee())
                .append("paymentTerms", getPaymentTerms())
                .toString();
    }
}

